package com.john.cloud.feigin;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: JohnCoding
 * @Description:
 * @date: 2020/4/20 10:03
 */
@RestController
public class HelloController {

    @RequestMapping("/hello")
    public String hello() {
        return "hello docker!";
    }

    @GetMapping("/cloud")
    public String cloud(@RequestParam String name) {
        System.out.println("测试成功");
        return "hello " + name + "，this is first messgeasdasdasdasdasdasdasdasdasdasd";
    }

    @GetMapping("/foo")
    public String foo(String foo){
        return "hello "+ foo + "!";
    }

}
